Crate machineid_rs

source ·
Expand description

Get an encrypted unique MachineID/HWID/UUID.

This crate is inspired by .Net DeviceId

You can add all the components you need without admin permissions.

use machineid_rs::{IdBuilder, Encryption, HWIDComponent};

// There are 3 different encryption types: MD5, SHA1 and SHA256.
let mut builder = IdBuilder::new(Encryption::MD5);

builder.add_component(HWIDComponent::SystemID).add_component(HWIDComponent::CPUCores);

let hwid = builder.build("mykey").unwrap();

Structs

  • IdBuilder is the constructor for the HWID. It can be used with the 3 different options of the Encryption enum.

Enums

  • The encryptions that can be used to build the HWID.
  • The components that can be used to build the HWID.